package dao;

import java.util.List;

import bean.Pagination;

import entity.Book;
import entity.Product;

public interface BookDAO {
	public List<Book> findRecommend()throws Exception;
	public List<Product> findHot(final int size)throws Exception;
	public List<Product> findNew()throws Exception;
	public List<Book> findById(int id)throws Exception;
	public List<Book> findById(int id,Pagination p)throws Exception;
	public Product findProById(int id)throws Exception;
	public List<Book> findByProperty(final String propertyName, final String order,final int id,
			final Pagination p) throws Exception;
	public Book findBookById(int id) throws Exception;
}
